widget: Propagate display changes to the style context
authorMatthias Clasen <mclasen@redhat.com>
Sat, 6 Apr 2019 23:03:25 +0000 (23:03 +0000)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 6 Apr 2019 23:03:25 +0000 (23:03 +0000)
commitbea7ccb41fdde2dde05b16fcd70f9745dcb36f6a
tree7e35bc2e1a86cd74be2a23de79729a5c713ffdc1
parent9895f2bd3ab3870edbe14f52e0f228e4f7f66b15
widget: Propagate display changes to the style context

When a root is set on a widget, the style context may
already exist. We need to make sure that the style context
has the right display set.

This was showing up as "css spillover" in the inspector.

Closes: #https://gitlab.gnome.org/GNOME/gtk/issues/1817
gtk/gtkwidget.c